.class Lcom/xingbook/xingbook/d/m;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;


# direct methods
.method public constructor <init>(Lcom/xingbook/xingbook/d/i;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/xingbook/xingbook/d/m;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 3
    .annotation build Landroid/annotation/SuppressLint;
        value = {
            "NewApi"
        }
    .end annotation

    const/16 v2, 0x8

    iget-object v0, p0, Lcom/xingbook/xingbook/d/m;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/xingbook/d/i;

    if-nez v0, :cond_0

    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    :goto_0
    return-void

    :cond_0
    iget v1, p1, Landroid/os/Message;->what:I

    packed-switch v1, :pswitch_data_0

    :goto_1
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    goto :goto_0

    :pswitch_0
    invoke-static {v0}, Lcom/xingbook/xingbook/d/i;->a(Lcom/xingbook/xingbook/d/i;)Landroid/widget/TextView;

    move-result-object v1

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setVisibility(I)V

    invoke-static {v0}, Lcom/xingbook/xingbook/d/i;->b(Lcom/xingbook/xingbook/d/i;)Landroid/widget/RelativeLayout;

    move-result-object v1

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->setVisibility(I)V

    invoke-static {v0}, Lcom/xingbook/xingbook/d/i;->c(Lcom/xingbook/xingbook/d/i;)Landroid/widget/Button;

    move-result-object v1

    const-string v2, "\u6253\u5f00"

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    sget v1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v2, 0x10

    if-lt v1, v2, :cond_1

    invoke-static {v0}, Lcom/xingbook/xingbook/d/i;->c(Lcom/xingbook/xingbook/d/i;)Landroid/widget/Button;

    move-result-object v1

    invoke-static {v0}, Lcom/xingbook/xingbook/d/i;->d(Lcom/xingbook/xingbook/d/i;)F

    move-result v2

    invoke-static {v2}, Lcom/xingbook/park/ui/aa;->e(F)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setBackground(Landroid/graphics/drawable/Drawable;)V

    :goto_2
    invoke-static {v0}, Lcom/xingbook/xingbook/d/i;->c(Lcom/xingbook/xingbook/d/i;)Landroid/widget/Button;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setVisibility(I)V

    goto :goto_1

    :cond_1
    invoke-static {v0}, Lcom/xingbook/xingbook/d/i;->c(Lcom/xingbook/xingbook/d/i;)Landroid/widget/Button;

    move-result-object v1

    invoke-static {v0}, Lcom/xingbook/xingbook/d/i;->d(Lcom/xingbook/xingbook/d/i;)F

    move-result v2

    invoke-static {v2}, Lcom/xingbook/park/ui/aa;->e(F)Landroid/graphics/drawable/GradientDrawable;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/Button;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_2

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
    .end packed-switch
.end method
